package cn.da.shuai.cool.system.model.entity.user;

import cn.da.shuai.cool.common.annotation.CoolField;
import cn.da.shuai.cool.system.model.annotation.PasswordValidation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

@Schema(description = "修改密码参数")
public record ModifyPasswordVo(

        @CoolField(value = "password")
        @NotBlank(message = "{password.old.empty}")
        @Schema(description = "旧密码")
        String oldPassword,

        @CoolField(ignore = true)
        @PasswordValidation(message = "{password.rule.error}")
        @Schema(description = "新密码")
        String newPassword
) {
}
